package 类和对象课堂练习;

public class Eyu extends Pet {
    String zhonglei;
    public Eyu(String name, int health, int love, String sex,String zhonglei){
        super(name,health,love,sex);
        this.zhonglei=zhonglei;

    }
    public void print(){
        System.out.println("喂的是肥西老母鸡");
        System.out.println(name+"是一只"+zhonglei+"，会下蛋，会游泳");
        super.print();
    }


}
